<?php
class Bank{

	/*
	 *Search History :
	 *Class inherit from this Class have to Implement 3 abstract function
	 */
	abstract function Search_History($From_Acc,$Payment_Code,$Payment_Amount);
	abstract function Send_Money($To_Acc,$Payment_Amount);
	abstract function Get_Account_Info($BankAcc);

	function curl($url,$post=false,$usecookie = false ) {

		$ch = curl_init();
		if($post) {
			curl_setopt($ch, CURLOPT_POST ,1);
			curl_setopt ($ch, CURLOPT_POSTFIELDS, $post);
		}
		curl_setopt($ch, CURLOPT_URL, $url);
		curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
		curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 1);
		curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
		curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.12) Gecko/20101026 BTRS35926 Firefox/3.6.12");
		if ($usecookie) {
			curl_setopt($ch, CURLOPT_COOKIEJAR, $usecookie);
			curl_setopt($ch, CURLOPT_COOKIEFILE, $usecookie);
		}
		curl_setopt($ch,CURLOPT_TIMEOUT,500);


		curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
		$result=curl_exec ($ch);
		curl_close ($ch);


		return $result;
	}

}

?>